home *** CD-ROM | disk | FTP | other *** search
/ Freelog 115 / FreelogNo115-MaiJuin2013.iso / Internet / Filezilla Server / FileZilla_Server-0_9_41.exe / source / interface / OptionsGSSPage.cpp < prev    next >
C/C++ Source or Header  |  2011-11-06  |  2KB  |  76 lines

  1. // FileZilla Server - a Windows ftp server
  2.  
  3. // Copyright (C) 2002-2004 - Tim Kosse <tim.kosse@gmx.de>
  4.  
  5. // This program is free software; you can redistribute it and/or
  6. // modify it under the terms of the GNU General Public License
  7. // as published by the Free Software Foundation; either version 2
  8. // of the License, or (at your option) any later version.
  9.  
  10. // This program is distributed in the hope that it will be useful,
  11. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. // GNU General Public License for more details.
  14.  
  15. // You should have received a copy of the GNU General Public License
  16. // along with this program; if not, write to the Free Software
  17. // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  18.  
  19. // OptionsGSSPage.cpp : implementation file
  20. //
  21.  
  22. #include "stdafx.h"
  23. #include "filezilla server.h"
  24. #include "OptionsDlg.h"
  25. #include "OptionsPage.h"
  26. #include "OptionsGSSPage.h"
  27.  
  28. #if defined(_DEBUG) && !defined(MMGR)
  29. #define new DEBUG_NEW
  30. #undef THIS_FILE
  31. static char THIS_FILE[] = __FILE__;
  32. #endif
  33.  
  34. /////////////////////////////////////////////////////////////////////////////
  35. // COptionsGSSPage property page
  36.  
  37.  
  38. COptionsGSSPage::COptionsGSSPage(COptionsDlg *pOptionsDlg, CWnd* pParent /*=NULL*/) 
  39. : COptionsPage(pOptionsDlg, COptionsGSSPage::IDD, pParent)
  40. {
  41.     //{{AFX_DATA_INIT(COptionsGSSPage)
  42.     m_bPromptPassword = FALSE;
  43.     m_bUseGSS = FALSE;
  44.     //}}AFX_DATA_INIT
  45. }
  46.  
  47.  
  48. void COptionsGSSPage::DoDataExchange(CDataExchange* pDX)
  49. {
  50.     COptionsPage::DoDataExchange(pDX);
  51.     //{{AFX_DATA_MAP(COptionsGSSPage)
  52.     DDX_Check(pDX, IDC_PROMPTPASSWORD, m_bPromptPassword);
  53.     DDX_Check(pDX, IDC_USEGSS, m_bUseGSS);
  54.     //}}AFX_DATA_MAP
  55. }
  56.  
  57.  
  58. BEGIN_MESSAGE_MAP(COptionsGSSPage, COptionsPage)
  59.     //{{AFX_MSG_MAP(COptionsGSSPage)
  60.     //}}AFX_MSG_MAP
  61. END_MESSAGE_MAP()
  62.  
  63. /////////////////////////////////////////////////////////////////////////////
  64. // COptionsGSSPage message handlers
  65.  
  66. void COptionsGSSPage::LoadData()
  67. {
  68.     m_bUseGSS = m_pOptionsDlg->GetOptionVal(OPTION_USEGSS) != 0;
  69.     m_bPromptPassword = m_pOptionsDlg->GetOptionVal(OPTION_GSSPROMPTPASSWORD) != 0;
  70. }
  71.  
  72. void COptionsGSSPage::SaveData()
  73. {
  74.     m_pOptionsDlg->SetOption(OPTION_USEGSS, m_bUseGSS);
  75.     m_pOptionsDlg->SetOption(OPTION_GSSPROMPTPASSWORD, m_bPromptPassword);
  76. }